﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using FlashCards.Models;

namespace FlashCards.WebApplication.Controls
{
    public partial class FriendControl : System.Web.UI.UserControl
    {
        private User _user;

        public User User { set { _user = value; } }

        public FriendControl(User user)
        {
            _user = user; 
        }

        public FriendControl()
        {
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            LoginLabel.Text = _user.Login;
        }
    }
}